home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 016a / cd_share.zip / CDSHARE.DOC < prev    next >
Text File  |  1992-01-03  |  57KB  |  1,586 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.                   CD-SHARE DEMONSTRATION SOFTWARE PACKAGE
  10.  
  11.                      By - Digital Solutions Pty. Ltd.
  12.  
  13.                           Release 1.2 January 1992
  14.  
  15.  
  16.      The programs  and documentation  packed with  this document  file
  17.      form  the  CD-SHARE  peer  to  peer  CD-ROM  networking  software
  18.      package.
  19.  
  20.      The demonstration package is a  generic version which will run on
  21.      any NETBIOS  compatible network.  It is  restricted in  that a CD
  22.      Server will  only accept a  log in  from one CD  Workstation at a
  23.      time, and the CD Redirector will only log into one CD Server at a
  24.      time.
  25.  
  26.      CD-SHARE sells for A$495.00  (i.e. Australian Dollars). For those
  27.      of  you  in  the  USA  the  current  exchange  rate  between  the
  28.      Australian and US dollar is about US$0.77 for A$1.00.
  29.  
  30.      If  you  have  any  questions  regarding  CD-SHARE  please  don't
  31.      hesitate to contact us at :
  32.  
  33.  
  34.      Digital Solutions Pty. Ltd.
  35.      P.O. Box 178
  36.      Margate
  37.      QLD, Australia 4019
  38.  
  39.      Ph  (07) 8831851   Intl (617) 8831851
  40.      Fax (07) 2831217   Intl (617) 2831217
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73.  
  74.  
  75.  
  76.  
  77.  
  78.  
  79.  
  80.  
  81.  
  82.  
  83.                 CD SHARE - CD ROM NETWORK SHARING SOFTWARE
  84.  
  85.                                 Version 1.2
  86.  
  87.                                User's Manual
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.      Digital Solutions Pty. Ltd.
  122.      P.O. Box 178
  123.      Margate
  124.      QLD, Australia. 4019
  125.      Ph. 07 8831851 Intl. 617 8831852
  126.      Fax 07 2831217 Intl. 617 2831217
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.  
  137.  
  138.  
  139.  
  140.                              TABLE OF CONTENTS
  141.  
  142.      CONTENTS                                                    PAGE
  143.  
  144.      1.0 BACKGROUND                                               1
  145.  
  146.          1.1 THE CD-ROM SOFTWARE INTERFACE                        1
  147.  
  148.          1.2 CD-SHARE - WHAT IT IS AND WHY WE NEED IT             2
  149.  
  150.      2.0 CONFIGURING A CD-SERVER                                  5
  151.  
  152.      3.0 CONFIGURING A CD-WORKSTATION                             5
  153.  
  154.      4.0 COMMAND LINE SWITCHES                                    9
  155.  
  156.          4.1 CD MANAGER COMMAND LINE SWITCHES                     9
  157.  
  158.          4.2 CD REDIRECTOR COMMAND LINE                          11
  159.  
  160.          4.3 CD-SERVER COMMAND LINE SWITCHES                     11
  161.  
  162.      5.0 CACHING YOUR CD-ROM DRIVES - CD-CACHE                   13
  163.  
  164.      6.0 ADVANCED TOPICS                                         15
  165.  
  166.          6.1 MEMORY USAGE                                        15
  167.  
  168.          6.2 OPTIMIZING CD-SERVE PARAMETERS                      16
  169.              FOR A NON-DEDICATED SERVER
  170.  
  171.          6.3 OPTIMIZING CD-CACHE PARAMETERS                      17
  172.  
  173.          6.4 RUNNING CD-SERVE AND CD-CACHE IN DEDICATED MODE     19
  174.  
  175.      7.0 QUESTIONS AND ANSWERS                                   20
  176.  
  177.  
  178.  
  179.  
  180.  
  181.  
  182.  
  183.  
  184.  
  185.  
  186.  
  187.  
  188.  
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195.  
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202.  
  203.  
  204.  
  205.  
  206.  
  207.      1.0 BACKGROUND
  208.  
  209.      1.1 THE CD-ROM SOFTWARE INTERFACE
  210.  
  211.      When you purchase a CD-ROM drive  and controller card for your PC
  212.      you will usually also receive a disk containing a software device
  213.      driver  for the  drive and  a program  written by  MicroSoft Corp
  214.      called the "MS-DOS CD-ROM Extensions" (MSCDEX.EXE).
  215.  
  216.      Device drivers are programs that  are loaded by including them in
  217.      a line  in the CONFIG.SYS  file on  your DOS boot  disk. A device
  218.      driver is a software program  with a standard DOS interface which
  219.      allows DOS  to talk  to hardware  devices which  it knows nothing
  220.      about. Although you don't see it DOS actually talks to your disks
  221.      via an internal device driver !
  222.  
  223.      The device driver  supplied with your  CD-ROM drive(s) allows DOS
  224.      to interface  to the  CD-ROM drive  without actually  knowing the
  225.      hardware specifics of the drive. This is how DOS can interface to
  226.      various  different  brands  of  drives  with  different  hardware
  227.      interfaces -  it simply  talks via  the device  driver which does
  228.      know about the hardware.
  229.  
  230.      There are two different classes of device drivers - character and
  231.      block device drivers. An example of a character device driver are
  232.      the internal DOS  devices named CON (your  console) and PRN (your
  233.      LPT1) since they work a character at a time. Your disk drives are
  234.      block  devices since  they transfer  data to  and from  memory in
  235.      blocks (e.g. a typical  cluster (block) size for  a disk might be
  236.      2K bytes.  Character device drivers  and addressed  by name (e.g.
  237.      CON,  PRN,  COM1,  etc) whereas  block  type  device  drivers are
  238.      allocated a drive letter by DOS in the range A: to Z:.
  239.  
  240.      A single device driver can control a number of drives, in fact up
  241.      to 255. Since DOS  only allows block device  drive names A: to Z:
  242.      this limits the practical total number of drives to a total of 26
  243.      minus  any  physical  hard  and   floppy  disk  drives  that  are
  244.      installed.  If  you  had  two  floppy  disks  and  one  hard disk
  245.      installed (A;, B: and C:) and a device driver named 'DEVICED' was
  246.      installed  controlling 3  block devices  the  system would  be as
  247.      follows :
  248.                   ┌──── A:
  249.                   │
  250.                   ├──── B:
  251.                   │
  252.                   ├──── C:
  253.          DOS──────┤   ┌───────────┐    ┌──── E:
  254.                   │   │           │    │
  255.                   └───┤  DEVICED  ├────┼──── F:
  256.                       │           │    │
  257.                       └───────────┘    └──── G:
  258.  
  259.                                   Fig. 1
  260.  
  261.  
  262.                                   Page 1
  263.  
  264.  
  265.  
  266.  
  267.  
  268.  
  269.  
  270.  
  271.  
  272.  
  273.      DOS automatically  gives block  devices the  next available drive
  274.      letter(s) when the  device driver is  installed in the config.sys
  275.      file.
  276.  
  277.      If CD-ROM's were normal block device that would be the end of the
  278.      story, however a single  CD-ROM can hold a  massive 550 MBytes of
  279.      information  - far  more than  DOS  was designed  to manage  on a
  280.      single block device. To  overcome this limitation MicroSoft wrote
  281.      some extensions  to DOS known  as the  "MS-DOS CD-ROM Extensions"
  282.      (MSCDEX). MSCDEX  uses the networking  drive redirection features
  283.      built into DOS versions  3.1 and later to  create a logical drive
  284.      for each  drive attached to  each device driver  specified on the
  285.      MSCDEX command  line when the  extensions are  started. MSCDEX is
  286.      not a device driver, it is  a "Terminate and Stay Resident" (TSR)
  287.      program which runs  and returns to  DOS but remains  in memory to
  288.      it's work in the background.
  289.  
  290.      So that CD-ROM device drivers won't  be installed by DOS as block
  291.      devices  the  device  driver  header  tells  DOS  that  they  are
  292.      character  devices  (even  though  they  aren't).  CD-ROM  device
  293.      drivers are block device drivers  that appear to DOS as character
  294.      devices but  have a  special signature  so that  MSCDEX and other
  295.      software wishing to talk to the  CD-ROM via the device driver can
  296.      recognize them as  CD-ROM devices. If  our previous example (Fig.
  297.      1)  of DOS  with a  three  drive device  driver were  replaced by
  298.      MSCDEX and a  device driver (CDDRIVER)  driving three CD-ROMS the
  299.      layout would now be as follows :
  300.      
  301.                   ┌──── A:
  302.                   │
  303.                   ├──── B:
  304.                   │
  305.                   ├──── C:
  306.          DOS──────┤   ┌──────────┐  ┌──────────┐  ┌──── E:
  307.                   │   │          │  │          │  │
  308.                   └───┤  MSCDEX  ├──┤ CDDRIVER ├──┼──── F:
  309.                       │          │  │          │  │
  310.                       └──────────┘  └──────────┘  └──── G:
  311.  
  312.                                   Fig. 2
  313.      
  314.      When MSCDEX or any other software calls a CD-ROM device driver it
  315.      specifies which drive (or unit) it wishes to access by specifying
  316.      a number beginning with zero. It  figure 2 the logical drives E:,
  317.      F: and G: would be drives 0,1 and 2 to CDDRIVER.
  318.  
  319.      1.2 CD-SHARE - WHAT IT IS AND WHY WE NEED IT
  320.  
  321.      As well as making CD-ROM's appear as normal (large capacity) disk
  322.      drives,   MSCDEX  supplies   a  number   of  other   services  to
  323.      applications  software  that   calls  MSCDEX  directly.  Although
  324.      networks such as ArtiSoft's LANtastic can redirect a CD-ROM drive
  325.      so that it  appears as an  extra drive on  a network workstation,
  326.  
  327.  
  328.                                   Page 2
  329.  
  330.  
  331.  
  332.  
  333.  
  334.  
  335.  
  336.  
  337.  
  338.      CD-ROM software that  requires MSCDEX to run  won't work. To make
  339.      matters  even   worse  some   CD-ROM  software   bypasses  MSCDEX
  340.      completely and talks directly to the CD-ROM device driver.
  341.  
  342.      This is where  CD-SHARE comes in.  The CD-SHARE software contains
  343.      CD-Server  and CDWORK/CD-Redirector.  CDServer  is a  TSR program
  344.      which is run on the network  computer which has the CD-ROM drives
  345.      fitted  and  the  appropriate  CD-ROM  device  drivers installed.
  346.      CDWORK.SYS and CD-Redirector are run on workstations which wishes
  347.      to access CD-ROM  devices on CD-Servers.  CDWORK.SYS appears as a
  348.      local CD-ROM device driver, however it passes and device requests
  349.      onto  CD-Redirector  which in  turn  passes the  requests  to the
  350.      appropriate CD-Server for processing.  The results of the request
  351.      are passed back to CD-Redirector/CDWORK.SYS  and then back to the
  352.      application  which  called   CDWORK.SYS  .  CDWORK.SYS  therefore
  353.      appears to  applications programs  (including MSCDEX)  as a local
  354.      CD-ROM device driver.
  355.  
  356.      The CD-Manager program  allows you to alter  the number of drives
  357.      that CDWORK.SYS appears to be controlling, and to connect each of
  358.      those  logical drives  to  a CD-ROM  drive  on a  network machine
  359.      running CD-SERVER.
  360.  
  361.      Because CD-ROM  seek times  and data  transfer rates  are so slow
  362.      sharing a single CD-ROM amongst  a number of users usually causes
  363.      applications on workstations to run unacceptably slow. Because of
  364.      this the CD-SHARE software suite  also includes CD-CACHE which is
  365.      a  CD-ROM  caching   program  written  specifically   to  run  in
  366.      conjunction with CD-SHARE. When  CD-CACHE running, when a request
  367.      to  read CD-ROM  data occurs  CD-CACHE  checks to  see if  it has
  368.      already been read. If  not then the data  is read from the CD-ROM
  369.      and  stored in  the cache  as well  as being  passed back  to the
  370.      calling software. If a  request for data which  is already in the
  371.      cache occurs  then the data  is returned directly  from the cache
  372.      without any access  at all to the  CD-ROM. The CD-CACHE algorithm
  373.      ensures that the most frequently read data (directories, etc) are
  374.      always kept in the cache,  this improves response times even when
  375.      only one users is running  programs from the CD-ROM. CD-CACHE can
  376.      use conventional or extended memory up to 32 MBytes.
  377.  
  378.      The networking version of figure 2 using CD-SHARE would appear as
  379.      follows :
  380.          ┌──── A:
  381.          │
  382.          ├──── B:
  383.          │
  384.          ├──── C:                                    ┌────────┐
  385.      DOS─┤ ┌────────┐ ┌────────┐ ┌─────┐     ┌─────┐ │        ├─── 0
  386.          └─┤ MSCDEX ├─┤ CDWORK ├─┤ CDR │-----│ CDS ├─┤CDDRIVER├─── 1
  387.            └────────┘ └────────┘ └─────┘  ^  └─────┘ │        ├─── 2
  388.                                           │          └────────┘    ^
  389.                      Network Connection ──┘           Drive Nos.───┘
  390.  
  391.                                   Fig. 3
  392.  
  393.  
  394.                                   Page 3
  395.  
  396.  
  397.  
  398.  
  399.  
  400.  
  401.  
  402.  
  403.  
  404.      Where :
  405.                    1. CDWORK is the CD-Share CD-ROM device driver
  406.                    2. CDR is the CD-Redirector
  407.                    3. CDS is the CD-Server
  408.  
  409.      Note that figure three is  a very simple configuration. Each copy
  410.      of  CDS which  is started  on a  CD-Server is  started up  with a
  411.      unique name and can be attached to multiple device drivers on the
  412.      server  computer. Using  CD-Manager (CDM)  each logical  drive on
  413.      CDWORK may be connected to any CDServer\Device\Drive. For Example
  414.  
  415.                    SERVERS         DEVICE DRIVERS       DRIVES
  416.  
  417.                  ┌──────────┐      ┌────────────┐  ┌─────  0
  418.          +-------│ CDSERV-1 ├───┬──┤   DRIVER1  ├──┤
  419.          |       └──────────┘   │  └────────────┘  └─────  1
  420.          |                      │  ┌────────────┐  ┌─────  0
  421.          |                      └──┤   DRIVER2  ├──┼─────  1
  422.          |                         └────────────┘  └─────  2
  423.          |
  424.          |       ┌──────────┐      ┌────────────┐  ┌─────  0
  425.          +-------│ CDSERV-2 ├──────┤   DRIVER1  ├──┼─────  1
  426.          |       └──────────┘      └────────────┘  └─────  2
  427.          |
  428.          |       ┌──────────┐      ┌────────────┐  ┌─────  0
  429.          +-------│ CDSERV-3 ├───┬──┤   DRIVER1  ├──┤
  430.          |       └──────────┘   │  └────────────┘  └─────  1
  431.          |                      │  ┌────────────┐  ┌─────  0
  432.          |                      ├──┤   DRIVER2  ├──┼─────  1
  433.          |                      │  └────────────┘  └─────  2
  434.          |                      │  ┌────────────┐
  435.          |                      └──┤   DRIVER3  ├────────  0
  436.          |                         └────────────┘
  437.          |
  438.          |
  439.          |       WORKSTATION
  440.          |
  441.          |       DEVICE DRIVER       ATTACHED TO        DRIVES
  442.          |
  443.          |                         ┌─CDSERV-1\DRIVER2\2 =  0
  444.          |       ┌─────┐ ┌────────┐│
  445.          +-------│ CDR ├─┤ CDWORK ├┼─CDSERV-3\DRIVER3\0 =  1
  446.                  └─────┘ └────────┘│
  447.                                    └─CDSERV-1\DRIVER1\1 =  2
  448.  
  449.                                   Fig. 4
  450.  
  451.      Note that since CDWORK simulates a CD-ROM device driver, there is
  452.      no need to run MSCDEX on workstations running software that talks
  453.      directly  to  the  CD-ROM  device  driver.  Also  CD-Server  is a
  454.      non-dedicated server, this means that  CDR and CDWORK may also be
  455.      run on the  server which may  then log into  and use devices made
  456.      networkable  by  it's  own  copy of  CD-Serve  as  well  as other
  457.      CD-Servers.
  458.  
  459.  
  460.                                   Page 4
  461.  
  462.  
  463.  
  464.  
  465.  
  466.  
  467.  
  468.  
  469.  
  470.  
  471.      2.0 CONFIGURING A CD-SERVER
  472.  
  473.  
  474.      1.  Install  the  CD-ROM  drives,  controllers,  etc.  and device
  475.          drivers  then test  run  the drives  and  programs as  if the
  476.          system were  not to be  networked to make  sure everything is
  477.          okay before adding the CD-Server.
  478.  
  479.      2.  If you have run  MSCDEX in step 1,  then re-boot the computer
  480.          and DON'T  run MSCDEX. Copy  the CDServer  (CDS.EXE) from the
  481.          CD-Share distribution disk onto your system boot disk.
  482.  
  483.      3.  Make  sure your  network  NETBIOS driver  has  been installed
  484.          (with LANtastic this is  AILANBIO, LANBIOS, or LANBIOS2). You
  485.          won't  need  any  other   networking  software  on  a  CD-ROM
  486.          workstation  or  a CD-Server  in  order to  run  the CD-Share
  487.          programs.   (You   can   still   run   network  re-directors,
  488.          non-dedicated servers, etc. if need be).
  489.  
  490.      4.  Assuming you wish  to allow five logged  in users, have named
  491.          your CD-ROM  device drivers  DRIVER1, DRIVER2,  etc (You will
  492.          have specified the driver names on the "DEVICE=" line for the
  493.          drivers in the  config.sys file. Typical  names take the form
  494.          MSCD001,  MSCD002, etc)  and we  wish to  call our  CD server
  495.          cdserver1 enter the following command line :
  496.  
  497.          CDS CDSERVER1 device=DRIVER1 device=DRIVER2 verbose users=5
  498.  
  499.          The "device=DeviceName" section  may be repeated  up to eight
  500.          times. CD-Serve can handle up  to 32 drives (e.g. four device
  501.          drivers  each driving  eight  drives, or  eight  drivers each
  502.          driving four drives, one driver driving eight drives and four
  503.          drivers driving six  drives, or any  mix). The verbose option
  504.          is optional and causes CDS to indicate the names of connected
  505.          device  drivers  as they  are  attached to  confirm  that the
  506.          command line  was accepted  correctly. The  "device=" section
  507.          may  be  abbreviated to  "d="  to  fit more  switches  on the
  508.          command line.  CDS has more  command line  switches, they are
  509.          covered in the "Advanced Topics" section.
  510.  
  511.          Note  that  after  CDS has  been  run,  all  connected device
  512.          drivers are effectively  removed from the  DOS device list so
  513.          they can't be accessed by any  other software. If you need to
  514.          access  the device  drivers in  order to  gain access  to the
  515.          CD-ROM(s)  from software  running locally  on the  server you
  516.          will have to configure the server as a workstation as well.
  517.  
  518.      3.0 CONFIGURING A CD-WORKSTATION
  519.  
  520.      1.  Copy  the programs  CDWORK.SYS, CDR.EXE  (CD-Redirector), and
  521.          CDM( CD-Manager) onto the workstation disk. CDWORK.SYS should
  522.          be in the root directory, CDR.EXE  and CDM.EXE should be in a
  523.          directory which is on the PATH.
  524.  
  525.  
  526.                                   Page 5
  527.  
  528.  
  529.  
  530.  
  531.  
  532.  
  533.  
  534.  
  535.  
  536.  
  537.      2.  Insert a  line similar  to that  following in  the config.sys
  538.          file on the workstation boot disk :
  539.  
  540.          DEVICE=CDWORK.SYS [DEVICE_NAME]
  541.  
  542.          Where DEVICE_NAME is the name that MSCDEX or any other CD-ROM
  543.          software  will  use  to  access  the  CD-ROM  driver. Typical
  544.          examples might be :
  545.  
  546.          DEVICE=CDWORK.SYS MSCD001
  547.          OR
  548.          DEVICE=CDWORK.SYS CDWORK
  549.  
  550.          We  will  assume  that  the name  CDWORK  is  used  in future
  551.          discussion. Whatever you use, make sure that the name doesn't
  552.          conflict  with a  name  you have  given  to any  other device
  553.          drivers (e.g. if you are setting up a non-dedicated CD-Server
  554.          you will have both CDWORK.SYS  and real CD-ROM device drivers
  555.          installed in the config.sys file).
  556.  
  557.      3.  You will now have to  re-boot the computer so that CDWORK.SYS
  558.          is installed. CDWORK.SYS will sign on with a line similar to
  559.  
  560.          CDWORK Installed - Copyright Digital Solutions
  561.  
  562.          during the boot sequence.
  563.  
  564.      4.  Make  sure  that   your  network  NETBIOS   driver  has  been
  565.          installed. Assuming you wish to call your CD Workstation CDW1
  566.          and  you  wish  to  redirect  to  a  maximum  of  two CDROM's
  567.          simultaneously enter the following command line :
  568.  
  569.          CDR CDW1 2
  570.  
  571.          The actual syntax for the CDR command line is :
  572.  
  573.          CDR [Station Name] {Maximum Drives}
  574.  
  575.          where []  indicates that  the parameter  is mandatory  and {}
  576.          indicates that the switch is optional. If "Maximum Drives" is
  577.          not specified  it defaults to  one. This is  all that usually
  578.          required since CD-Manager (CDM) can be used to disconnect the
  579.          redirected  CD-ROM  drive  from  any  CD  Server  device  and
  580.          re-connect to another at will. Also MSCDEX uses an additional
  581.          4K of memory for each logical drive on a device driver.
  582.  
  583.      5.  You can now use  CDM to connect to  devices and drives on any
  584.          CD-Servers that are on  line. To log into  and connect to our
  585.          CDSERVER1, DEVICE1,  DRIVE 0 that  we set up  in the previous
  586.          section, enter the following command line :
  587.  
  588.          CDM V IN:ON +:0=\\CDSERVER1\DEVICE1\0
  589.  
  590.  
  591.  
  592.                                   Page 6
  593.  
  594.  
  595.  
  596.  
  597.  
  598.  
  599.  
  600.  
  601.  
  602.          After  CDM connects  output similar  to the  following should
  603.          appear on the screen :
  604.  
  605.  
  606.          C:\CDM V IN:ON +:0=\\CDSERVER1\DEVICE1\0
  607.  
  608.          DEVICE1            :           Units            =           2
  609.  
  610.          CD - REDIRECTOR STATUS....
  611.  
  612.          Connected                                           servers..
  613.  
  614.                  \\CDSERVER1
  615.  
  616.          Drives..
  617.  
  618.                  Drive 0: Connected to \\CDSERVER1\DEVICE1\0
  619.                  Drive 1: NOT Connected
  620.  
  621.          Total Servers  Attached :  1
  622.          Total Drives   Attached :  1
  623.          Maximum Drives Attached :  2
  624.          Activity  Indicator is  : ON at Row 1, Column 80
  625.  
  626.          C:\
  627.  
  628.                                     Fig. 5
  629.  
  630.          Let's analyze  the command line  to set what  we've done. The
  631.          first switch  V{erbose} tells  CDW to  work in  verbose mode.
  632.          This is why the line
  633.  
  634.                    DEVICE1 : Units = 2
  635.  
  636.          appeared,  and why  the CD  Redirector  status was  listed in
  637.          full.
  638.  
  639.          The next switch
  640.  
  641.                    IN{dicator}:ON
  642.  
  643.          tells CDM  to turn on  the CD  Redirector activity indicator.
  644.          This  causes  a  small activity  indicator  to  flash  on the
  645.          workstation as CD-ROM activity is in progress. By default the
  646.          position of this is  row one, column 80  on the screen (upper
  647.          right corner), see "CDM Command Line Switches" for details on
  648.          how to change this position.
  649.  
  650.          The next switch requires a little more description :
  651.  
  652.  
  653.                    +:0=\\cdserver1\device1\0
  654.  
  655.          The + option tells CDM to  add a new connection to CDWORK, in
  656.  
  657.  
  658.                                   Page 7
  659.  
  660.  
  661.  
  662.  
  663.  
  664.  
  665.  
  666.  
  667.  
  668.          this case to a  drive 0, on a device  named "device1" on a CD
  669.          Server named "cdserver1". The actual syntax is as follows :
  670.  
  671.          +:[Local Drive Number]=\\[Server Name]\[Device Name]\Drive
  672.  
  673.          Where a device named "Device Name" be attached to a CD Server
  674.          named "Server Name" and that  device must have a drive number
  675.          "Drive".
  676.  
  677.          If you  now run the  Microsoft extensions  on the workstation
  678.          specifying  the  name  that you  gave  CDWORK.SYS  (we'll use
  679.          CDWORK as the name) you should get the following response :
  680.  
  681.          C:\mscdex /d:cdwork
  682.          MSCDEX Version 2.10
  683.          Copyright  (C) Microsoft  Corp. 1986,  1987, 1988,  1989. All
  684.          rights reserved.
  685.                 Drive D: = Driver CDWORK unit 0
  686.                 Drive E: = Driver CDWORK unit 1
  687.  
  688.          C:\
  689.  
  690.                                     Fig. 6
  691.  
  692.          Note that your drive letters  may not necessarily begin at D:
  693.          depending upon the drives installed  in your computer and any
  694.          redirected network drives you may have.
  695.  
  696.          If you now type :
  697.  
  698.                    DIR D:
  699.  
  700.          You should now get a  directory listing of the root directory
  701.          of the disk in your CD-ROM drive.
  702.  
  703.          Note that if you now type in
  704.  
  705.                    DIR E:
  706.  
  707.          You will  get an error  message from MSCDEX  stating that the
  708.          drive  is  not  ready,  this is  because  drive  E:  which is
  709.          attached to DRIVE  1 on CDWORK  is not connected  to a server
  710.          device (see Fig. 5).
  711.  
  712.          Now that  MSCDEX has  been run  you may  refer to  the CDWORK
  713.          drives by their drive number, or by their MSCDEX drive letter
  714.          when using CDM.
  715.  
  716.          The - CDM command line switch allows a drive connection to be
  717.          removed e.g.
  718.  
  719.          CDM -:0, or CDM -:D
  720.  
  721.          Would cause CDWORK drive 0 (Fig. 5) to be disconnected, or
  722.  
  723.  
  724.                                   Page 8
  725.  
  726.  
  727.  
  728.  
  729.  
  730.  
  731.  
  732.  
  733.  
  734.  
  735.          CDM LOGOUT:CDSERVER1
  736.  
  737.          Would cause all connections to CDSERVER1 to be removed.
  738.  
  739.      4.0 COMMAND LINE SWITCHES
  740.  
  741.      4.1 CD MANAGER COMMAND LINE SWITCHES
  742.  
  743.      The syntax of the CD Manager (CDM.EXE) command line is as follows
  744.  
  745.          CDM {switches}
  746.  
  747.      Where {switches} represents  any of the  following switches, each
  748.      separated by a space. Note  that any characters between {} braces
  749.      are optional, the {}  characters do NOT form  part of the switch.
  750.      Square braces  [] indicate  that the words  between the  [] are a
  751.      name  and should  not be  entered as  shown. i.e.  The name  of a
  752.      Device, CD Server, or Drive  Number should be substituted for the
  753.      [name]  entry  (the  []  characters  are  not  required.  e.g. To
  754.      indicate  that a  device name  is required  we might  say [Device
  755.      Name], when CDM is  actually run we might  use DEVICE1 instead of
  756.      [Device Name]. In all cases a  = character may be substituted for
  757.      the : character in the following list.
  758.  
  759.      Switch        Function
  760.      
  761.      V{erbose}     Causes verbose  operation of  CDM. CDM  will report
  762.                    various activities  as they are  processed and will
  763.                    cause CDM  to show  a CD  Redirector status listing
  764.                    after all other switches have been processed.
  765.  
  766.      Sh{ow}        Causes CDM  to display  CD Redirector  status after
  767.                    all other switches have been processed.
  768.  
  769.      Logo{ut}:     Syntax
  770.  
  771.                    Logout:Server_Name
  772.  
  773.                    Causes all  CDWORK drive  connections to  CD Server
  774.                    "Server_Name" to  be deleted and  the connection to
  775.                    "Server_Name" to be removed.
  776.  
  777.      +:            Syntax
  778.  
  779.                    +:[Local Drive]=\\[ServerName]\[DeviceName]\[Drive]
  780.  
  781.                    Attaches the CDWORK drive  [Local Drive] to [Drive]
  782.                    on a device named [DeviceName] on a CD Server named
  783.                    [ServerName].  For [Local  Drive] either  the local
  784.                    CDWORK drive number or the drive letter may be used
  785.                    if MSCDEX has been run.  [Drive] may be replaced by
  786.                    ALL if you  want all of  the drives on [DeviceName]
  787.                    to  be  attached to  CDWORK  beginning  with CDWORK
  788.  
  789.  
  790.                                   Page 9
  791.  
  792.  
  793.  
  794.  
  795.  
  796.  
  797.  
  798.  
  799.  
  800.                    drive [Local Drive]. e.g.  to Connect local drive 1
  801.                    to   [Drive]   2   on   [DeviceName]   MSCD001   on
  802.                    [ServerName] CDSERVER1  the following  switch would
  803.                    be used
  804.  
  805.                    +:1=\\CDSERVER1\MSCD001\2
  806.  
  807.                    If  MSCDEX  had  been run  and  Local  Drive number
  808.                    corresponded to drive E:  then the following syntax
  809.                    could also have been used
  810.  
  811.                    +:E=\\CDSERVER1\MSCD001\2
  812.  
  813.      -:            Syntax
  814.  
  815.                    -:[Local Drive]
  816.  
  817.                    Disconnects  [Local Drive]  from  the device  it is
  818.                    currently attached to. [Local  Drive] may be either
  819.                    the  CDWORK  logical  drive  (unit)  number  or the
  820.                    MSCDEX drive name if MSCDEX has been run.
  821.  
  822.      Dr{ives}      Syntax
  823.  
  824.                    Drives:[New Number of Local Drives]
  825.  
  826.                    Alters the number of logical drives that CDWORK can
  827.                    redirect.  This  switch  will  not  be  accepted if
  828.                    MSCDEX has already been run.
  829.  
  830.      In{dicator}   Syntax
  831.  
  832.                    Indicator:[On|Off]{@Row,Column}
  833.  
  834.                    Turns the  CD Redirector  activity indicator  On or
  835.                    Off depending upon whether  On, or Off is specified
  836.                    after the : . If On is specified you may optionally
  837.                    specify the screen coordinates by following On with
  838.                    @Row,Column ; where valid ranges for row and column
  839.                    are 1 to  25 and 1 to  80 respectively. The default
  840.                    position for the indicator  is 1,80. For example to
  841.                    turn  the indicator  on at  row  25, column  80 the
  842.                    following switch would be used
  843.  
  844.                    in:on@25,80
  845.  
  846.                    or to turn it off
  847.  
  848.                    in:off
  849.  
  850.                    Note  that  if  in:on is  specified  without  a new
  851.                    position,  then  the previous  position  setting is
  852.                    retained.
  853.  
  854.  
  855.  
  856.                                   Page 10
  857.  
  858.  
  859.  
  860.  
  861.  
  862.  
  863.  
  864.  
  865.  
  866.  
  867.      4.2 CD REDIRECTOR COMMAND LINE
  868.  
  869.      The CD  Redirector (CDR.EXE) command  line must  contain a unique
  870.      name for  the CD Redirector  session and can  contain an optional
  871.      number of Local Drives specifier for CDWORK.
  872.  
  873.      CDR [Unique Name] {Number of Local Drives}
  874.  
  875.      e.g.
  876.  
  877.      CDR STN1 1
  878.  
  879.      The  number of  local drives  defaults to  one if  not specified.
  880.      Since MSCDEX uses an extra 4K of ram per local drive, a figure of
  881.      1 is recommended  if MSCDEX is  to be used.  Since it is unlikely
  882.      that  a  workstation  will  be  accessing  more  than  one CD-ROM
  883.      simultaneously this  does not impose  a limitation as  CDM can be
  884.      used to alter the actual CD-ROM drive that the single local drive
  885.      is connected to at any time.
  886.  
  887.      Note that  providing MSCDEX hasn't  been run CDM.EXE  can also be
  888.      used to alter the number of local drives.
  889.  
  890.      CDR can be  logged into a maximum  of five CD  Servers at any one
  891.      time. Local Drives can range from one to twenty five.
  892.  
  893.      4.3 CD-SERVER COMMAND LINE SWITCHES
  894.      
  895.      The syntax of the CD Server (CDS.EXE) command line is as follows
  896.  
  897.          CDS [Server_Name] device=device_name {switches}
  898.  
  899.      [Server_Name] a  unique name  which is  used to  represent the CD
  900.      Server on the network. At least one device must be specified.
  901.  
  902.      Where {switches} represents  any of the  following switches, each
  903.      separated by a space. Note  that any characters between {} braces
  904.      are optional, the {}  characters do NOT form  part of the switch.
  905.      Square braces  [] indicate  that the words  between the  [] are a
  906.      name  and should  not be  entered as  shown. i.e.  The name  of a
  907.      Device, CD Server, or Drive  Number should be substituted for the
  908.      [name]  entry  (the  []  characters  are  not  required.  e.g. To
  909.      indicate  that a  device name  is required  we might  say [Device
  910.      Name], when CDS is  actually run we might  use DEVICE1 instead of
  911.      [Device Name]. In all cases a  = character may be substituted for
  912.      the : character in the following list.
  913.  
  914.      Switch        Function
  915.  
  916.      D{evice}      Syntax
  917.  
  918.                    Device:[Device_Name]
  919.  
  920.  
  921.  
  922.                                   Page 11
  923.  
  924.  
  925.  
  926.  
  927.  
  928.  
  929.  
  930.  
  931.  
  932.                    where [Device_Name] is the named of a CD-ROM device
  933.                    driver already installed on the server. This switch
  934.                    may be used a maximum  of eight times connecting to
  935.                    a  maximum of  32  drives per  server  (each device
  936.                    driver can  handle multiple  drives -  the total of
  937.                    these drives must not exceed 32). Device drivers to
  938.                    which CDS attaches are  removed from the DOS device
  939.                    list  so other  programs can  no longer  access the
  940.                    device(s).
  941.  
  942.      Us{ers}       Syntax
  943.  
  944.                    Users:[Maximum Number of logged in CD users]
  945.  
  946.                    Note that  a NETBIOS  session is  required for each
  947.                    logged  in  user.  CDS  DOES  NOT  check  that your
  948.                    NETBIOS   can  support   the  number   of  sessions
  949.                    corresponding  to your  Users specification,  it is
  950.                    the  responsibility  of the  network  configurer to
  951.                    ensure  that   enough  netbios   sessions  will  be
  952.                    available. (Up to 254 with LANtastic)
  953.  
  954.      Bu{ffer}      Syntax
  955.  
  956.                    Buffer:[Buffer Size in sectors]
  957.  
  958.                    e.g. Buffer:4
  959.  
  960.                    Specifies the  size of the  network transfer buffer
  961.                    used to  pass CD ROM  data to  CD workstations. The
  962.                    actual  buffer  size  is  approximately  2K  by the
  963.                    specified buffer  size. The default  Buffer Size is
  964.                    three  sectors (about  6K). Larger  buffers improve
  965.                    performance  but  use  more   memory  when  CDS  is
  966.                    installed leaving  less room for  other programs to
  967.                    run (This is not a  consideration when running a CD
  968.                    Server in dedicated mode).  Note that one buffer is
  969.                    allocated PER network task (see "Tasks")
  970.  
  971.      Ta{sks}       Syntax
  972.  
  973.                    Tasks:[Number of Network Tasks]
  974.  
  975.                    e.g. Tasks:3
  976.  
  977.                    The  network  tasks   figure  determines  how  many
  978.                    network   CD   requests  the   server   can  handle
  979.                    simultaneously.   The   default   is   one.   On  a
  980.                    non-dedicated server the law of diminishing returns
  981.                    is reached at  a figure of  about five tasks. Three
  982.                    tasks  is usually  adequate, use  two if  memory is
  983.                    tight.
  984.      5.0 CACHING YOUR CD-ROM DRIVES - CD-CACHE
  985.  
  986.  
  987.  
  988.                                   Page 12
  989.  
  990.  
  991.  
  992.  
  993.  
  994.  
  995.  
  996.  
  997.  
  998.      CD-CACHE is  a caching program  specifically designed  to work in
  999.      conjunction with CD-Serve on a CD-ROM server. Because of the slow
  1000.      access times of CD-ROM drives use of CD-CACHE is almost essential
  1001.      if three or  more than three  users will be  accessing the CD-ROM
  1002.      simultaneously.  In fact  using  CD-CACHE will  usually  speed up
  1003.      response times even when only one user is accessing the CD-ROM.
  1004.  
  1005.      CD-CACHE can use conventional,  extended, expanded, or XMS memory
  1006.      for caching purposes  CD-CACHE will  cache any accesses to any of
  1007.      the CD-ROM drives  (i.e. up to  32) that are  being managed by CD
  1008.      Serve (CDS.EXE).
  1009.  
  1010.      Like CDS.EXE CD-CACHE (CDC.EXE) is a TSR program. This means that
  1011.      when you run CDC from the command line it will install itself and
  1012.      return to the DOS prompt while  remaining in memory to perform CD
  1013.      caching as necessary. CDC will not install unless CDS has already
  1014.      been installed.
  1015.  
  1016.      CDC has a number of command line switches, the two that will most
  1017.      commonly be used are those that specify the type of memory CDC is
  1018.      to use for caching  purposes and the amount  of memory to use for
  1019.      caching.
  1020.  
  1021.      The syntax of the CD Cache (CDC.EXE) command line is as follows
  1022.  
  1023.          CDC {switches}
  1024.  
  1025.      Where {switches} represents  any of the  following switches, each
  1026.      separated by a space. Note  that any characters between {} braces
  1027.      are optional, the {}  characters do NOT form  part of the switch.
  1028.      Square braces  [] indicate  that the words  between the  [] are a
  1029.      name and should not be entered  as shown. i.e. A number of KBytes
  1030.      of memory to be used would  be substituted for the [Cache Size in
  1031.      Kbytes] entry  (the [] characters  are not required.  When CDC is
  1032.      actually run we might use 1000 instead of [Cache Size in KBytes].
  1033.      In all cases a = character may be substituted for the : character
  1034.      in  the  following  list.  Command  line  switches  are  not case
  1035.      sensitive, i.e. TYPE is the same as Type or typE.
  1036.  
  1037.      Switch        Function
  1038.  
  1039.      Type          Syntax
  1040.  
  1041.                    Type:{Conv|Ext|Ems|Xms}
  1042.  
  1043.                    e.g.
  1044.  
  1045.                    TYPE:CONV  means to  use conventional memory (below
  1046.                    the 640K boundary) for caching.
  1047.  
  1048.                    TYPE:EXT for Extended Memory
  1049.                    TYPE:EMS for Expanded memory
  1050.                    TYPE:XMS for XMS memory
  1051.  
  1052.  
  1053.  
  1054.                                   Page 13
  1055.  
  1056.  
  1057.  
  1058.  
  1059.  
  1060.  
  1061.  
  1062.  
  1063.  
  1064.                    The default  is Conventional  if no  TYPE switch is
  1065.                    used.
  1066.  
  1067.      Size          Syntax
  1068.  
  1069.                    Size:[Cache Size in KBytes]
  1070.  
  1071.                    e.g. size:1000 for  a 1MByte cache.  The default is
  1072.                    to use ALL of the specified type of cache memory if
  1073.                    no size switch  is found. Note that  if you use all
  1074.                    of conventional memory as cache it is preferable to
  1075.                    use the Dedicate CDC switch  to cause the CD Server
  1076.                    to  run  dedicated,  this will  always  use  all of
  1077.                    conventional   memory  for   caching  as   well  as
  1078.                    improving performance dramatically  and leaving you
  1079.                    the  option of  unloading CDC  at any  time without
  1080.                    re-booting the  CD Server.  See the  "Dedicate" CDC
  1081.                    switch  for more  detail. If  you run  CD-CACHE not
  1082.                    dedicated and use all available conventional memory
  1083.                    for caching  there will  be NO  MEMORY LEFT  TO RUN
  1084.                    OTHER PROGRAMS.
  1085.  
  1086.      Ded{icate}    Causes CD Cache  to run the  CD-Server in dedicated
  1087.                    mode.    This   improves    CD-Server   performance
  1088.                    dramatically  (5  to  10  fold)  and  will  add any
  1089.                    remaining  conventional memory  available  after CD
  1090.                    Cache has loaded  to the cache  memory. E.G. if you
  1091.                    have specified  1MByte of extended  memory as cache
  1092.                    and  use the  dedicate switch,  and CD  Cache finds
  1093.                    that 500K  of conventional  memory remain available
  1094.                    after it has  loaded - your  total cache size would
  1095.                    be  1.5MBytes. When  CD Cache  is run  in dedicated
  1096.                    mode pressing the Esc key on the CD-Server keyboard
  1097.                    will unload CD Cache and  return to the DOS command
  1098.                    line,  leaving the  CD  Server as  a non-dedicated,
  1099.                    non-cached  (as  far  as  CD  ROM's  are concerned)
  1100.                    server.
  1101.  
  1102.      Buff{er Sectors}
  1103.                    Syntax
  1104.  
  1105.                    Buffer:{Buffer Size in Sectors}
  1106.  
  1107.                    When CD-Cache  performs any CD-ROM  reads it ALWAYS
  1108.                    reads the same number  of sectors into cache memory
  1109.                    then returns the requests sectors from the cache to
  1110.                    CD Server. For optimum  performance the Buffer Size
  1111.                    set for CD-Cache  should be a  multiple of that set
  1112.                    for CD  Serve. The  default for  CD Serve  is three
  1113.                    sectors and the default for CD-CACHE is six. As you
  1114.                    can see the  default of six for  CD-Cache will be a
  1115.                    multiple of Buffer  settings for CD  Server of one,
  1116.                    two,  or  three sectors.  The  maximum  buffer size
  1117.                    setting is 25 sectors  (about 64KBytes). The buffer
  1118.  
  1119.  
  1120.                                   Page 14
  1121.  
  1122.  
  1123.  
  1124.  
  1125.  
  1126.  
  1127.  
  1128.  
  1129.  
  1130.                    size you choose will be determined by the amount of
  1131.                    conventional and  cache memory  you are  willing to
  1132.                    let CD-Cache  use and  the performance  you require
  1133.                    from the server. See  the "Advanced Topics" section
  1134.                    for  information on  how to  make decisions  on the
  1135.                    best  combinations  of  options  to  select  for CD
  1136.                    Server  and CD  Cache  to optimize  performance for
  1137.                    your application.
  1138.  
  1139.      An example  command line for  running CD Cache  in dedicated mode
  1140.      using 2 MBytes of extended memory would be as follows :
  1141.  
  1142.      CDC Type:Ext Size:2000
  1143.  
  1144.      6.0 ADVANCED TOPICS
  1145.  
  1146.      6.1 MEMORY USAGE
  1147.  
  1148.      The amount  of conventional memory  used by the  various CD Share
  1149.      programs and MSCDEX after being loaded is listed below.
  1150.  
  1151.      NOTE: 1K = 1024 Bytes
  1152.  
  1153.      PROGRAM       MEMORY USED
  1154.  
  1155.      CDWORK.SYS    < 650 Bytes
  1156.      CDR.EXE       8 KBytes
  1157.  
  1158.      CDS.EXE       12K + Users * 106 + Tasks * (BufferSecs*2532 + 225)
  1159.  
  1160.                    e.g. 10 Users, 2 tasks, 5 sectors per buffer =
  1161.  
  1162.                    12K + 10 * 106 + 2 * ( 5 * 2532 + 225)
  1163.  
  1164.                    = 39118 Bytes
  1165.                    = 38.2 K
  1166.  
  1167.      CDC.EXE       Conventional Cache :
  1168.  
  1169.                        12K + Size of Cache
  1170.  
  1171.                    Other               :
  1172.  
  1173.                        Buffer Size Bytes(BSB) = BufferSectors * 2532
  1174.                        Buffers in Cache (BIC) = CacheSize/BSB
  1175.  
  1176.                        Conventional Memory used = 12K + BIC*34 + BSB
  1177.  
  1178.                        e.g. Cache Size = 2MBytes of Extended Memory
  1179.                             BufferSectors = 6
  1180.  
  1181.                        BSB = 6 * 2532 = 15192 Bytes
  1182.                        BIC = (2000 * 1024)/15192 = 134(.8)
  1183.  
  1184.  
  1185.  
  1186.                                   Page 15
  1187.  
  1188.  
  1189.  
  1190.  
  1191.  
  1192.  
  1193.  
  1194.  
  1195.  
  1196.                        Conv Mem Used = 12K + 134*34 + 15192
  1197.                                      = 31012 Bytes
  1198.                                      = 30.3 K
  1199.  
  1200.  
  1201.  
  1202.      MSCDEX.EXE    22K + 4K per logical  drive (e.g. one device driver
  1203.                    controlling 2 drives  would use approximately 30K).
  1204.                    This will vary slightly according to the version of
  1205.                    MSCDEX.
  1206.  
  1207.      6.2 OPTIMIZING CD-SERVE PARAMETERS FOR A NON-DEDICATED SERVER
  1208.  
  1209.      For a non-dedicated CD  Server we are assuming  that you want the
  1210.      server to use as  little memory as possible.  As with most things
  1211.      in real life you rarely get  something for nothing - the more you
  1212.      prune back  the resources  available to  CD Serve  the poorer the
  1213.      performance will  be. The trick  is to strike  a compromise which
  1214.      gives both acceptable memory usage and acceptable performance.
  1215.  
  1216.      As  you can  see  from the  CDS.EXE  section in  section  6.1 CDS
  1217.      conventional memory usage is governed by three parameters
  1218.  
  1219.          1. Users
  1220.          2. Buffer Sectors
  1221.          3. Tasks
  1222.  
  1223.      Obviously you should only specify the number of CD users that you
  1224.      actually want the CD  Server to be able  to have connected at any
  1225.      one time.
  1226.  
  1227.      The "Buffer  Sectors" parameter  defines the  size of  the memory
  1228.      buffer that CDS  uses to return  CD ROM data  to a CD Redirector.
  1229.      The larger this parameter  is made (Max 25)  the larger the block
  1230.      of data that the server can send to the CD Redirector in one hit.
  1231.      However the maximum figure of 25 sectors amounts to a buffer size
  1232.      of about 64K and there is  one buffer allocated per network task,
  1233.      as  you can  see  allocating large  buffers  and tasks  can quite
  1234.      quickly gobble up huge amounts of memory.
  1235.  
  1236.      The number of tasks determines  how many CD network requests that
  1237.      the  CD Server  can  process at  any  one time.  Performance will
  1238.      improve  as  the  number  of  tasks  is  increased.  The  law  of
  1239.      diminishing returns  is reached for  a non-dedicated  server at a
  1240.      figure of about five tasks.
  1241.  
  1242.      The question then  arises as to  which combination is  best for a
  1243.      non-dedicated server. The  answer of course  lies in the question
  1244.      "how much memory do you want left over after CDS has been run and
  1245.      what  level  of   performance  are  you   going  to  consider  as
  1246.      satisfactory ?". For minimum memory usage both the Buffer Sectors
  1247.      and  Tasks should  be reduced  to a  minimum. The  default buffer
  1248.      sectors setting  is three,  a setting of  two is  probably a good
  1249.      starting  point if  you  a trying  to  minimize memory  usage and
  1250.  
  1251.  
  1252.                                   Page 16
  1253.  
  1254.  
  1255.  
  1256.  
  1257.  
  1258.  
  1259.  
  1260.  
  1261.  
  1262.      maintain reasonable performance. A Tasks setting of two will give
  1263.      a  fairly  substantial  improvement  over  the  default  of  one,
  1264.      improvements will be gradually decreasing  as the number of tasks
  1265.      is increased through three, four, and five.
  1266.  
  1267.      With  this  background  experimentation   is  probably  the  best
  1268.      indicator of what  will be acceptable  for your application. When
  1269.      evaluating   performance  it   should  be   noted  that   CD  ROM
  1270.      applications  usually  have  long   periods  of  disk  inactivity
  1271.      interspersed  with short  bursts  of activity  when  programs and
  1272.      images are  loaded from  the CD ROM.  A simple  method of gauging
  1273.      performance is to create a batch file on a number of workstations
  1274.      which  reads a  large  number of  files  from the  CD-ROM  into a
  1275.      temporary file  on a hard  disk, deletes the  temporary file then
  1276.      loops to the beginning - timing  the loop will give an indication
  1277.      of performance. If you have this  arrangement set up and you wish
  1278.      to re-boot  the server  in order  to alter  CDS parameters  it is
  1279.      quite acceptable to simply re-boot the server. Each CD Redirector
  1280.      will  eventually report  an error  and MSCDEX  will give  you the
  1281.      options Abort, Retry, or Ignore. After CDS has been re-run on the
  1282.      CD  Server  simply  select   Retry  and  the  CD-Redirector  will
  1283.      re-connect to the server and continue.
  1284.  
  1285.      6.3 OPTIMIZING CD-CACHE PARAMETERS
  1286.  
  1287.      We will assume here  that for a non-dedicated  CD Server CD Cache
  1288.      will always  be run  using cache  memory other  than conventional
  1289.      memory;  since you  would  have to  use  all of  the conventional
  1290.      memory in order to make  the cache of any use  and if you do this
  1291.      you might  as well run  the CD  Server in dedicated  mode and get
  1292.      some real performance improvements !
  1293.  
  1294.      As you  can see  from the  calculations for  CDC.EXE conventional
  1295.      memory usage  when using  extended memory,  the additional memory
  1296.      that CDC uses beyond it's fixed code  and data size is made up of
  1297.      two components
  1298.  
  1299.          1. A  single  buffer  the  size   of  which  is  set  by  the
  1300.             "BufferSectors" command  line switch.  The default setting
  1301.             for this is 6 sectors or about 15 KBytes.
  1302.  
  1303.          2. Cache Buffer management  memory which amounts  to 34 bytes
  1304.             for each time the buffer allocated at step 1 will fit into
  1305.             the cache memory size.
  1306.  
  1307.      From step 2  we can see that  for a given  amount of cache memory
  1308.      the amount of  cache management memory  required increases as the
  1309.      "Buffer Sectors" setting decreases. In the example calculation of
  1310.      section 6.1 for 2MByte  of cache memory and  6 sectors per buffer
  1311.      we used  134 *  34 Bytes  = 4556  bytes for  cache management and
  1312.      15192 bytes for the buffer  for a total extra conventional memory
  1313.      usage  of 19748  Bytes. If  we  halved the  buffer size  to three
  1314.      sectors we could used  269 * 34 =  9146 Bytes for management plus
  1315.      7596 bytes for buffering  for a total of  16742 bytes. As you can
  1316.  
  1317.  
  1318.                                   Page 17
  1319.  
  1320.  
  1321.  
  1322.  
  1323.  
  1324.  
  1325.  
  1326.  
  1327.  
  1328.      see we have  only reduced the  consumption of conventional memory
  1329.      by 3K  but we  have more  than doubled  the fragmentation  of the
  1330.      cache.
  1331.  
  1332.      As a general rule, the larger  the Buffers per Sector setting the
  1333.      better as  it allows  the CD-ROM  to read  more information  in a
  1334.      single disk read thus eliminating a seek from another position on
  1335.      the  disk  when  sequential sectors  are  read  from  the server.
  1336.      However a quick glance at some files on a CD-ROM will reveal that
  1337.      many of  the files  (and the directories  if you  could see their
  1338.      size) are actually less than 20K in length. This means that since
  1339.      there is  usually very  little file  fragmentation many  of these
  1340.      files could be  read with a  single access from  the CD ROM. Note
  1341.      that although CD-CACHE allocates 2532 bytes per sector so that it
  1342.      can cope with CD-ROM applications that request sector data in RAW
  1343.      mode (2532 bytes per sector) most applications read the CD-ROM in
  1344.      cooked mode which returns  2048 bytes per sector  (2K). Thus a 12
  1345.      sector buffer would  generally read 24K  bytes per read. Although
  1346.      CD-CACHE will accept buffer sizes  up to 25 sectors, using values
  1347.      above 12 decreases  the granularity of the  cache for very little
  1348.      improvement in performance.
  1349.  
  1350.      For  optimum  performance the  Buffer  size  should be  set  to a
  1351.      multiple of the BufferSectors setting  used with CDS. The default
  1352.      CD-CACHE  buffer size  is  set to  six  sectors, this  is  a good
  1353.      compromise between conventional memory usage and performance, and
  1354.      is also a  multiple of the  default CD-SERV buffer  size of three
  1355.      sectors (Also of 2, and 1 !).
  1356.  
  1357.  
  1358.      You should choose your buffer  sectors setting with the following
  1359.      things in mind:
  1360.  
  1361.          1. If  you  are  caching a  large  number  of  drives running
  1362.             different  applications,  then  for  a  given  cache  size
  1363.             smaller buffers  are going to  increase buffer granularity
  1364.             and therefore more  likely to keep  more of the frequently
  1365.             used sections of each CD-ROM in the cache.
  1366.  
  1367.          2. If  you don't  have  much memory  to  use as  cache memory
  1368.             smaller buffers  are better as  this will  help to improve
  1369.             the granularity.
  1370.  
  1371.          3. If you  have plenty of  cache memory in  comparison to the
  1372.             number  of CD-ROM's  that are  being  cached then  you can
  1373.             increase the buffer size to improve performance and reduce
  1374.             CD-ROM  drive wear  and  tear while  still  achieving good
  1375.             granularity.
  1376.  
  1377.          4. If you are running CD-CACHE in non-dedicated mode then you
  1378.             should choose a buffer size which results in an acceptable
  1379.             compromise   between   conventional    memory   used   and
  1380.             granularity
  1381.  
  1382.  
  1383.  
  1384.                                   Page 18
  1385.  
  1386.  
  1387.  
  1388.  
  1389.  
  1390.  
  1391.  
  1392.  
  1393.  
  1394.      6.4 RUNNING CD-SERVE AND CD-CACHE IN DEDICATED MODE
  1395.  
  1396.      If you  want the ultimate  in performance -  dedicate your CD-ROM
  1397.      Server !
  1398.  
  1399.      When using CD-CACHE you  can optionally tell it  to run CD Server
  1400.      in dedicated mode. This will  give an immediate speed improvement
  1401.      of  usually at  least five  hundred percent  as well  as allowing
  1402.      CD-CACHE to add  all remaining conventional  memory to it's cache
  1403.      buffers.
  1404.  
  1405.      As a bonus  you can unload  CD-CACHE and return  the CD-Server to
  1406.      non-dedicated/non-cached operation at the  touch of a key without
  1407.      disturbing  and other  network users  using  the CD-ROM's  on the
  1408.      server.
  1409.  
  1410.      To run in dedicated mode  simply include the "Dedicate" switch on
  1411.      the CD-Cache command line as follows :
  1412.  
  1413.  
  1414.      CDC Type:Extended Size:2000 Dedicated
  1415.  
  1416.      CD-Cache will respond with a  message saying that it is installed
  1417.      and running CD-Serve in dedicated mode.
  1418.  
  1419.      To  unload  CD-Cache  and   return  to  non-dedicated  CD  Server
  1420.      operation simply press  the Esc key. Network  users logged in and
  1421.      using the CD-ROM at this time will notice nothing excepting for a
  1422.      dramatic decrease in performance.
  1423.  
  1424.      If a computer is being used specifically as a dedicated CD Server
  1425.      in order to share multiple CD ROM's with maximum performance then
  1426.      the  memory  constraints  which  are  important  when  running in
  1427.      non-dedicated  mode lose  there importance.  The CD  Serve buffer
  1428.      size should be increased to about  six sectors and tasks to about
  1429.      five. The  CD-CACHE buffer  size should also  be set  to at least
  1430.      twelve sectors (you should install plenty of cache memory).
  1431.  
  1432.      Read sections 6.2 and 6.3 (if you haven't already done so) to get
  1433.      a good understanding of  the performance consequences of altering
  1434.      the CD-Serve and CD-Cache buffer sizes.
  1435.  
  1436.  
  1437.  
  1438.  
  1439.  
  1440.  
  1441.  
  1442.  
  1443.  
  1444.  
  1445.  
  1446.  
  1447.  
  1448.  
  1449.  
  1450.                                   Page 19
  1451.  
  1452.  
  1453.  
  1454.  
  1455.  
  1456.  
  1457.  
  1458.  
  1459.  
  1460.  
  1461.      7.0 QUESTIONS AND ANSWERS
  1462.  
  1463.      Question :    Does  a network  computer need  to be  set up  as a
  1464.                    network  server  or  have  a  redirector  or MSCDEX
  1465.                    installed in order to be used as a CD-Server.
  1466.  
  1467.      Answer   :    No - All  that is required of  the network in order
  1468.                    to run CD Serve on  a computer is a NETBIOS network
  1469.                    driver.
  1470.  
  1471.      Question  :   Do I need to run the network redirector on a CD ROM
  1472.                    workstation.
  1473.  
  1474.      Answer    :   No -  All that  is required  on the  workstation is
  1475.                    that CDWORK.SYS is included and given a device name
  1476.                    in the CONFIG.SYS file on the workstation boot disk
  1477.                    and   that  network   NETBIOS  network   driver  is
  1478.                    installed before running CDR.EXE.
  1479.  
  1480.      Question  :   Do I need to run MSCDEX on a CD-ROM workstation.
  1481.  
  1482.      Answer    :   Only  if your  CD-ROM application  requires MSCDEX.
  1483.                    Many CD-ROM applications  install themselves on the
  1484.                    workstation hard disk then  interface to the CD-ROM
  1485.                    directly via the device  driver (CDWORK.SYS in this
  1486.                    case)  -  these applications  usually  only require
  1487.                    MSCDEX for  the initial installation  (i.e. to copy
  1488.                    the  program  files  from the  CD-ROM  to  the hard
  1489.                    disk).
  1490.  
  1491.      Question  :   Can I  use a  CD-ROM workstation  to perform normal
  1492.                    network   activities   by   running   the   network
  1493.                    redirector.
  1494.  
  1495.      Answer    :   Yes - the CD Redirector and CDWORK appear simply as
  1496.                    another device  driver to  both the  network and to
  1497.                    DOS.
  1498.  
  1499.      Question  :   Can I  run CD  Serve in  dedicated or non-dedicated
  1500.                    mode on a normal non-dedicated network server (e.g.
  1501.                    LANtastic)
  1502.  
  1503.      Answer    :   Yes,  although the  activities  of the  two servers
  1504.                    will serve to  reduce the performance  of both when
  1505.                    running under heavy load conditions.
  1506.  
  1507.      Question  :   I cannot run my  normal network redirector up after
  1508.                    running CDR and MSCDEX
  1509.  
  1510.      Answer    :   MSCDEX  is  implemented as  a  network re-director.
  1511.                    Your network redirector sees MSCDEX as a previously
  1512.                    installed   network  redirector   and   refuses  to
  1513.                    install. The solution  is to run  MSCDEX after your
  1514.  
  1515.  
  1516.                                   Page 20
  1517.  
  1518.  
  1519.  
  1520.  
  1521.  
  1522.  
  1523.  
  1524.  
  1525.  
  1526.                    network  redirector  (and  before  your  server  if
  1527.                    running the  machine up as  a non-dedicated network
  1528.                    server e.g. LANtastic's SERVER.EXE).
  1529.  
  1530.      Question  :   After running MSCDEX I  don't have enough memory to
  1531.                    run my CD-ROM program.
  1532.  
  1533.      Answer    :   MSCDEX uses an  extra 4K of  memory for every drive
  1534.                    on every device driver it is attached to. Make sure
  1535.                    that when running CDR.EXE or CDM.EXE that you don't
  1536.                    set the number of drives supported by CD Redirector
  1537.                    to more than one. You can then use CDM.EXE to alter
  1538.                    this one  logical CD-ROM drive  to different CD-ROM
  1539.                    drives on any CD Servers on the network as and when
  1540.                    required.
  1541.  
  1542.      Question  :   After I run MSCDEX I get devices with names like
  1543.  
  1544.                              G.\A.
  1545.                              H.\B.
  1546.                              I.\C.
  1547.  
  1548.                    In   my  network   connection  manager's   list  of
  1549.                    redirected   drives   and   I   can't   remove  the
  1550.                    connection.
  1551.  
  1552.      Answer    :   MSCDEX functions  in exactly  the same  way as your
  1553.                    network redirector  - it  uses the  DOS redirection
  1554.                    functions and  therefore the  CD-ROM logical drives
  1555.                    appear in  the list  of redirected  drives. Because
  1556.                    your network redirector  doesn't recognize these as
  1557.                    it's own  re-directed drives  it won't  alter these
  1558.                    connections.
  1559.  
  1560.  
  1561.  
  1562.  
  1563.  
  1564.  
  1565.  
  1566.  
  1567.  
  1568.  
  1569.  
  1570.  
  1571.  
  1572.  
  1573.  
  1574.  
  1575.  
  1576.  
  1577.  
  1578.  
  1579.  
  1580.  
  1581.  
  1582.                                   Page 21
  1583.  
  1584.  
  1585.  
  1586.